package com.example.petproject.service.impl;

import com.example.petproject.entity.vo.ReceiverAddressVO;
import com.example.petproject.mapper.UmsReceiverAddressMapper;
import com.example.petproject.service.ReceiverAddressService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 包名称：com.example.petproject.service.impl
 * 类名称：ReceiverAddressServiceImpl
 * 类描述：收货地址service层实现
 * 创建人：@author DrinkMore-HotWater
 * 创建时间：2024年01月24日 11:14
 **/
@Service
public class ReceiverAddressServiceImpl implements ReceiverAddressService {

    @Resource
    private UmsReceiverAddressMapper umsReceiverAddressMapper;

    @Override
    public List<ReceiverAddressVO> getReceiverAddressByUserId(Long userId) {
        return umsReceiverAddressMapper.selectByUserId(userId);
    }
}
